package com.easymin.weixin.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 跑腿订单类型
 *
 * @author Administrator
 */
public class OrderType implements Serializable {
  private Long id;

  private Date created;

  private Date updated;

  private Long areaId;// 收费标准id

  private String typeName;// 类型名称:代买,排队...

  private Boolean endAddress;// 是否有结束地址

  private String startHint;// 起始地址提示

  private String endHint;// 目的地址提示

  private Long companyId;// 公司地址

  private String companyName;// 公司名称

  private String appKey;// 区分系统

  private Boolean errandValuationMethod;// 计价方式:false:使用预算费用 true:使用计价器费用
  
  private String typepicture;//类型图标
  
  private String allowTips;//允许热门标签多选
  
  private List<ErrandOrderTypeOtherServices> otherServices;//附加服务
  
  private List<ErrandOrderTypeTips> tips;//热门标签
  
  private List<ErrandOrderTypeDetailed> errandOrderTypeDetaileds;
  
  public List<ErrandOrderTypeDetailed> getErrandOrderTypeDetaileds() {
	return errandOrderTypeDetaileds;
  }

  public void setErrandOrderTypeDetaileds(
		List<ErrandOrderTypeDetailed> errandOrderTypeDetaileds) {
	this.errandOrderTypeDetaileds = errandOrderTypeDetaileds;
  }

  public Boolean getErrandValuationMethod() {
    return errandValuationMethod;
  }

  public void setErrandValuationMethod(Boolean errandValuationMethod) {
    this.errandValuationMethod = errandValuationMethod;
  }

  private static final long serialVersionUID = 1L;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public Long getAreaId() {
    return areaId;
  }

  public void setAreaId(Long areaId) {
    this.areaId = areaId;
  }

  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName == null ? null : typeName.trim();
  }

  public Boolean getEndAddress() {
    return endAddress;
  }

  public void setEndAddress(Boolean endAddress) {
    this.endAddress = endAddress;
  }

  public String getStartHint() {
    return startHint;
  }

  public void setStartHint(String startHint) {
    this.startHint = startHint == null ? null : startHint.trim();
  }

  public String getEndHint() {
    return endHint;
  }

  public void setEndHint(String endHint) {
    this.endHint = endHint == null ? null : endHint.trim();
  }

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public String getCompanyName() {
    return companyName;
  }

  public void setCompanyName(String companyName) {
    this.companyName = companyName == null ? null : companyName.trim();
  }

  public String getAppKey() {
    return appKey;
  }

  public void setAppKey(String appKey) {
    this.appKey = appKey == null ? null : appKey.trim();
  }

  
  public String getTypepicture() {
	return typepicture;
}

public void setTypepicture(String typepicture) {
	this.typepicture = typepicture;
}

public String getAllowTips() {
	return allowTips;
}

public void setAllowTips(String allowTips) {
	this.allowTips = allowTips;
}

public List<ErrandOrderTypeOtherServices> getOtherServices() {
	return otherServices;
}

public void setOtherServices(List<ErrandOrderTypeOtherServices> otherServices) {
	this.otherServices = otherServices;
}

public List<ErrandOrderTypeTips> getTips() {
	return tips;
}

public void setTips(List<ErrandOrderTypeTips> tips) {
	this.tips = tips;
}

@Override
  public boolean equals(Object that) {
    if (this == that) {
      return true;
    }
    if (that == null) {
      return false;
    }
    if (getClass() != that.getClass()) {
      return false;
    }
    OrderType other = (OrderType) that;
    return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
        && (this.getCreated() == null ? other.getCreated() == null : this.getCreated().equals(
            other.getCreated()))
        && (this.getUpdated() == null ? other.getUpdated() == null : this.getUpdated().equals(
            other.getUpdated()))
        && (this.getAreaId() == null ? other.getAreaId() == null : this.getAreaId().equals(
            other.getAreaId()))
        && (this.getTypeName() == null ? other.getTypeName() == null : this.getTypeName().equals(
            other.getTypeName()))
        && (this.getEndAddress() == null ? other.getEndAddress() == null : this.getEndAddress()
            .equals(other.getEndAddress()))
        && (this.getStartHint() == null ? other.getStartHint() == null : this.getStartHint()
            .equals(other.getStartHint()))
        && (this.getEndHint() == null ? other.getEndHint() == null : this.getEndHint().equals(
            other.getEndHint()))
        && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId()
            .equals(other.getCompanyId()))
        && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName()
            .equals(other.getCompanyName()))
        && (this.getAppKey() == null ? other.getAppKey() == null : this.getAppKey().equals(
            other.getAppKey()));
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
    result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
    result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
    result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode());
    result = prime * result + ((getTypeName() == null) ? 0 : getTypeName().hashCode());
    result = prime * result + ((getEndAddress() == null) ? 0 : getEndAddress().hashCode());
    result = prime * result + ((getStartHint() == null) ? 0 : getStartHint().hashCode());
    result = prime * result + ((getEndHint() == null) ? 0 : getEndHint().hashCode());
    result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
    result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
    result = prime * result + ((getAppKey() == null) ? 0 : getAppKey().hashCode());
    return result;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", created=").append(created);
    sb.append(", updated=").append(updated);
    sb.append(", areaId=").append(areaId);
    sb.append(", typeName=").append(typeName);
    sb.append(", endAddress=").append(endAddress);
    sb.append(", startHint=").append(startHint);
    sb.append(", endHint=").append(endHint);
    sb.append(", companyId=").append(companyId);
    sb.append(", companyName=").append(companyName);
    sb.append(", appKey=").append(appKey);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }
}
